package org.example.socket;

import java.net.InetAddress;
import java.net.Socket;

/**
 * @BelongsProject: javaFoundation
 * @BelongsPackage: org.example.socket
 * @Author: dtq
 * @CreateTime: 2023-11-01  16:19
 * @Description: TODO
 * @Version: 1.0
 */
public class SocketClient {
    public static void main(String[] args) throws Exception {
        //建立连接8888端口
        Socket socket = new Socket(InetAddress.getLocalHost(), 8888);

    }
}
